package com.xky.beetlsql.dao;

import com.xky.beetlsql.entity.Account;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.annotatoin.Sql;
import org.beetl.sql.core.mapper.BaseMapper;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author keying.xia
 * @date 2017/12/11
 */
@Component
public interface AccountDao extends BaseMapper<Account> {

    public Account getAccountByName(@Param("name") String name);

    public List<Account> getAccountByAge(@Param("minAge") Integer minAge, @Param("maxAge") Integer maxAge);

    public List<Account> getAccountLikeName(@Param("name") String name);

    public List<Account> getAccounts();

}
